#include "RecvServiceHandler.h"

void RecvServiceHandler::open()
{
  reactor_->registerHandler(this, READ_EVENT);
}

void RecvServiceHandler::service()
{
  std::string echo = peer().recv();
  std::cout << echo << std::endl;
}
  
void RecvServiceHandler::handleEvent(Handle h, EventType et)
{
  service();
}




